package cn.aiyuan.service;

import cn.aiyuan.query.UserQuery;
import cn.aiyuan.pojo.User;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Optional;

/**
 * @author wy
 * @since 2020/7/6
 */
public interface IUserService  {

    List<User> findAll();

    void insert(User user);

    void updateById(User user);

    Page<User> findByCondition(UserQuery userQuery);

    void deleteById(Long id);

    Optional<User> findOneById(Long id);

}
